package com.example.logistics_oa.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.comment_oa.pojos.xinzi.JibenGongzidan;
import com.example.logistics_oa.service.JibenGongzidanService;
import com.example.logistics_oa.mapper.JibenGongzidanMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 安徽彭于晏
* @description 针对表【jiben_gongzidan】的数据库操作Service实现
* @createDate 2023-02-05 16:19:48
*/
@Service
public class JibenGongzidanServiceImpl extends ServiceImpl<JibenGongzidanMapper, JibenGongzidan>
    implements JibenGongzidanService{
    @Autowired
    JibenGongzidanMapper jibenGongzidanMapper;

    @Override
    public int insertAllGongZiDan(JibenGongzidan jibenGongzidan) {
        return jibenGongzidanMapper.insertAllGongZiDan(jibenGongzidan);
    }

    @Override
    public List<JibenGongzidan> selectALlGongZiDan(String jibenId) {
        return jibenGongzidanMapper.selectALlGongZiDan(jibenId);
    }

    @Override
    public int updateGongZiDanByQiTa(Double qian, String jibenId, String gonghao) {
        return jibenGongzidanMapper.updateGongZiDanByQiTa(qian, jibenId, gonghao);
    }

    @Override
    public int updateGongZhiDanOne(int jibenZhujian) {
        return jibenGongzidanMapper.updateGongZhiDanOne(jibenZhujian);
    }

    @Override
    public int updateGongZhiDanAll(String jibenId) {
        return jibenGongzidanMapper.updateGongZhiDanAll(jibenId);
    }

    @Override
    public List<JibenGongzidan> selectByIdAndSend(String jibenId, int jibensend) {
        return jibenGongzidanMapper.selectByIdAndSend(jibenId,jibensend);
    }

    @Override
    public int updateShiJian(String jibenId) {
        return jibenGongzidanMapper.updateShiJian(jibenId);
    }

    @Override
    public List<JibenGongzidan> selectOnePersonGongDe(String jibenId, String jibenGonghao) {
        return jibenGongzidanMapper.selectOnePersonGongDe(jibenId, jibenGonghao);
    }
}




